local sweet_madame = fk.CreateSkill {
  name = "cf_sweet_madame_skill",
}

Fk:loadTranslationTable {
  ["cf_sweet_madame_skill"] = "甜甜花酿鸡",
  ["#cf_sweet_madame_skill"] = "令一名角色未饱腹的已受伤的角色回复一点体力并饱腹"
}
sweet_madame:addEffect("cardskill", {
  prompt = "#cf_sweet_madame_skill",
  target_num = 1,
  mod_target_filter = function(self, player, to_select, selected, card, extra_data)
    return to_select:getMark("@@cf_baofu-turn") == 0 and to_select:isWounded()
  end,
  target_filter = Util.CardTargetFilter,
  on_effect = function(self, room, effect)
    local to
    local to = effect.to
    if not to:isWounded() and to.dead then return end
    room:recover {
      who = to,
      num = 1,
      card = effect.card,
      recoverBy = effect.from,
      skillName = sweet_madame.name
    }
    room:addPlayerMark(to, "@@cf_baofu-turn")
  end
})

return sweet_madame
